package com.nave.segundaguerra.activity;

import Enums.Classe;
import Enums.Team;
import android.graphics.PointF;

import com.nave.segundaguerra.game.Player;
import com.nave.segundaguerra.servidorecliente.cliente.PlayerCliente;
import com.nave.segundaguerra.servidorecliente.util.ActivityUtil;

/**
 * 
 * 
 * @author Thauan Lopes
 * 
 */

public class GameInformation {

	private static Classe classe = Classe.None;
	private static Team time = Team.NONE;
	private static Player player;
	private static PlayerCliente playerClient;

	// GETTERS AND SETTERS

	public static PlayerCliente getPlayerClient() {
		return playerClient;
	}

	public static void setPlayerClient(PlayerCliente playerClient) {
		GameInformation.playerClient = playerClient;
	}

	public static Player getPlayer() {
		if (player == null) {
			player = new Player(ActivityUtil.getCurrentActivity()
					.getApplicationContext(), new PointF(0, 0), "Thauan");
		}
		return player;
	}

	public static void setPlayer(Player player) {
		GameInformation.player = player;
	}

	public static Classe getClasse() {
		return classe;
	}

	public static Team getTime() {
		return time;
	}

	public static void setTime(Team time) {
		GameInformation.time = time;
	}

	public static void setClasse(Classe classe) {
		GameInformation.classe = classe;
	}

}
